//
//  MyMessage.swift


import AppKit

struct MyMessage {
    
   
    //显示基本提示消息(会自动消失)
    static func showText(message: String) {
        if message.isEmpty{return}
        NSAlert.showInfo(title: "提示", message: message)
    }
    
    static func showWaitHUD(){
        
    }
    
    static func hiddenWaitHUD(){}
    
}
extension NSAlert {
    static func showInfo(title: String, message: String) {
        let alert = NSAlert()
        alert.messageText = title
        alert.informativeText = message
        alert.alertStyle = .informational
        alert.addButton(withTitle: "确定")
        alert.runModal()
    }
}
